import Vue from 'vue'
import Router from 'vue-router'
import HelloWorld from '@/components/HelloWorld'
import HomePage from "@/components/HomePage";
import Test1 from "@/components/Test1";
import Test2 from "@/components/Test2";

Vue.use(Router)

const routes = [
    {
      path: '/HelloWorld',
      name: 'HelloWorld',
      component: HelloWorld,
    },
    {
      path: '/homePage',
      name: 'HomePage',
      component: HomePage,
    },
    {
      path: '/test1',
      name: 'Test1',
      component: Test1,
    },
    {
      path: '/test2',
      name: 'Test2',
      component: Test2,
    }
  ]
const router = new Router({
  mode: 'history',
  base: process.env.BASE_URL,
  routes
})

export default router
